<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="../libs/bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="../libs/jquery/2.1.1/jquery.min.js"></script>
    <script src="../libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <title>test5</title>
</head>
<body>

<a href="index.html">返回</a>

<form action="">
    <input type="radio" name="haonan" value="1">mahaonan<br>
    <input type="radio" name="haonan" value="2">nanhaoma
    <input type="checkbox" name="nan" value="3">a<br>
    <input type="checkbox" name="nan" value="4">b<br>
    <input type="checkbox" name="nan" value="5">c<br>
    <select name="cars">
        <option value="6">0</option>
        <option value="6">1</option>
        <option value="6">2</option>
        <option value="6" selected>3</option>
    </select>
    <textarea id="my_textarea" rows="20" cols="40" style="background-color:#bfc6fd">
        一个小的文本
    </textarea>
    <input type="button" value="准备好了妈?" onclick="hello1(this);">
    <fieldset>
        <legend>输入账户名</legend>
        账号:<input type="text" size="30"><br>
        密码:<input type="text" size="30"><br>
        验证码:<input type="text" size="12">
    </fieldset>
</form>
<form action="index.html">
    账号:<input type="text" name="1" value="123">
    密码:<input type="text" name="1" value="456">
    <input type="submit" value="提交">
</form>
<h4>列表</h4>
<ul>
    <li>my,name</li>
    <li>my,momo</li>
    <li>my,love</li>
</ul>

<div id="div1">hi, </div>

</body>
</html>
<script>
    var tag1 = true;
    var textarea1 = document.getElementById("my_textarea");
    var div1 = document.getElementById("div1");
    function hello1(src) {
        if (tag1) {
            textarea1.value = "1234333你好啊史蒂芬金考拉是离开对方";
            tag1 = false;
        } else {
            textarea1.value = "";
            tag1 = true;
        }

        var node=document.createTextNode("这是一个新段落。");
        div1.appendChild(node);

        var btn = document.createElement("input");
        btn.type = "button";
        btn.value = "我是动态创建的1";
        div1.appendChild(btn);

        src.remove();
    }


</script>